<!DOCTYPE html>
<html ng-app="sugarfreeApp">
<!-- ng-app="sugarfreeApp" -->
<head>
  <meta charset="utf-8">
  <link rel="icon" href="images/favicon.png" />
  <title>SugarFree</title>
  <meta name="description" content="">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="mobile-web-app-capable" content="yes"> 
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="apple-mobile-web-app-title" content="无糖健身">
    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <!-- build:css(.) styles/vendor.css -->
    <!-- bower:css -->
    <link rel="stylesheet" href="../bower_components/fullcalendar/dist/fullcalendar.css" />
    <link rel="stylesheet" href="../bower_components/ng-table/dist/ng-table.min.css" />
    <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css" />
    <!-- endbower -->
    <!-- endbuild -->

  <!-- endbuild -->
  <!-- build:css(.tmp) styles/main.css -->
  
  <link rel="stylesheet" type="text/css" href="styles/style_fonts.css" >
  <link rel="stylesheet" type="text/css" href="styles/style.css" >
  <link rel="stylesheet" type="text/css" href="styles/styles1.css" >
  <link rel="stylesheet" type="text/css" href="styles/bootstrap-datetimepicker.css"/>
  <!--amended-->
  <link href="styles/ng-table.css" rel="stylesheet" type="text/css">
  <link href="scripts/lib/jquery-ui.css"rel="stylesheet" />
  <!-- endbuild -->  
</head>
<body ng-controller="MainController" >
      <div class="statusbar-overlay"></div>

      <!-- header starts here -->
      <header class="navbar navbar-default navbar-fixed-top">
        <div class="head_prompt">
           <span class="horn"></span>
		   <marquee scrollamount="4" onMouseOut="this.start()" onMouseOver="this.stop()"><font>{{receipts.bookingMsg}}</font></marquee>
        </div>
        <div class="navbar-header">
          <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
              <i class="icon-bar"></i>
              <i class="icon-bar"></i>
              <i class="icon-bar"></i>
          </button>
          <a class="navbar-brand">
            <div class="top_logo">
              <img class="logoimg" src="images/LOGO2.png" alt="无糖健身">
              <!--<span class="spl"></span>--><span class="mid-text">无糖健身管理平台</span>
            </div>
          </a>
        </div>
        <nav class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li>
              <a ></a>
            </li>
          </ul>
          <ul class="nav navbar-nav pull-right">
            <li>
            		<img class="logs" ng-src="{{currentUser.logo}}" height="60" width="60" ng-click="showDetail();">
              	<div>{{currentUser.name}}</div>
            </li>
            <li ng-click="openChangePWD()">
            		<!--
            		<div style="height: 60px;width: 60px;"></div>-->
            		<img src="images/changepwd .png" height="60" width="60"/>
            		<div>修改密码</div>
            </li>            	
            <li ng-click="logout()">
            		<img src="images/esc.png" height="60" width="60">
            		<div>退出登录</div>
            </li>
            <!--
	            <li>
	              <qr text="qrString" type-number="0" correction-level="'M'" size="50" input-mode="'Auto'" image="true" ng-click="openQR()"></qr>
	            </li>
            -->
          </ul>
        </nav>
        
      </header>

      <!-- left navbar -->
      <aside class="leftnav">
        	<ul ng-init="showBaseLessonMenu=true;showPrivateLessonMenu=true">
        		<li>
        			<a ng-class="isRoute('/lessons')? 'lnlinks cur' : 'lnlinks' " ng-click="toggleBaseLessonMenu()"><span class="icons icon-nsgr-tasks"></span><span class="text">基础课程</span></a>
        			<ul ng-show="showBaseLessonMenu">
        				<li ng-mouseover="showMenuRight0=true" ng-mouseout="showMenuRight0=false">
        					<a ng-href="#/grouplessons/0/2" ng-class=" isRoute('/grouplessons/0/2')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">本周<br>{{weekRange.week0}}</a>
	        				<div class="menu-right" ng-show="showMenuRight0" ng-controller="LessonController" ng-click="copyLessonToNextWeek(2,0,1)">
	        					将此周复制到下一周
	        				</div>
        				</li>
        				
        				<li ng-mouseover="showMenuRight1=true" ng-mouseout="showMenuRight1=false">
        					<a href="#/grouplessons/1/2" ng-class=" isRoute('/grouplessons/1/2')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">下周<br>{{weekRange.week1}}</a>
        					<div class="menu-right"  ng-show="showMenuRight1" ng-controller="LessonController" ng-click="copyLessonToNextWeek(2,1,2)">
	        					将此周复制到下一周
	        				</div>
        				</li>
        				<li>
        					<a href="#/grouplessons/2/2" ng-class=" isRoute('/grouplessons/2/2')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">下下周<br>{{weekRange.week2}}</a>
        				</li>
        			</ul>
        		</li>
        		
        		<li>
        			<a ng-class=" isRoute('/lessons')? 'lnlinks cur' : 'lnlinks' " ng-click="togglePrivateLessonMenu();"><span class="icons icon-nsgr-tasks"></span><span class="text">私教课程</span></a>
        			<ul ng-show="showPrivateLessonMenu">
        				<li ng-mouseover="showMenuRight2=true" ng-mouseout="showMenuRight2=false">
        					<a ng-href="#/privatelessons/0/3" ng-class=" isRoute('/privatelessons/0/3')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">本周<br>{{weekRange.week0}}</a>
	        				<div class="menu-right" ng-show="showMenuRight2" ng-controller="LessonController" ng-click="copyLessonToNextWeek(3,0,1)">
	        					将此周复制到下一周
	        				</div>
        				</li>
        				
        				<li ng-mouseover="showMenuRight3=true" ng-mouseout="showMenuRight3=false">
        					<a href="#/privatelessons/1/3"ng-class=" isRoute('/privatelessons/1/3')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">下周<br>{{weekRange.week1}}</a>
        					<div class="menu-right"  ng-show="showMenuRight3" ng-controller="LessonController" ng-click="copyLessonToNextWeek(3,1,2)">
	        					将此周复制到下一周
	        				</div>
        				</li>
        				<li>
        					<a href="#/privatelessons/2/3"ng-class=" isRoute('/privatelessons/2/3')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);">下下周<br>{{weekRange.week2}}</a>
        				</li>
        			</ul>
        		</li>
        		<!--
        		<li><a href="#/courses" ng-class=" isRoute('/courses')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-cours"></span><span class="text">课程管理</span></a></li>
        		-->
        		<li><a href="#/coaches" ng-class=" isRoute('/coaches')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-coach"></span><span class="text">教练管理</span></a></li>
        		<li><a href="#/profile" ng-class=" isRoute('/profile')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-calendar"></span><span class="text">场馆信息</span></a></li>
        		<li><a href="#/receipts" ng-class=" isRoute('/receipts')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-profit"></span><span class="text">收益信息</span></a></li>
        		<li><a href="#/messages" ng-class=" isRoute('/messages')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-infor"></span><span class="text">消息通知</span></a></li>
        		<li><a href="#/about" ng-class=" isRoute('/about')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-notice"></span><span class="text">关于无糖</span></a></li>
        	</ul>
        	<!--
          <a href="#/records" ng-class=" isRoute('/records')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-home-outline"></span><span class="text">首页</span></a>
          <a href="#/grouplessons" ng-class=" isRoute('/lessons')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-tasks"></span><span class="text">基础课程</span></a>
          <a href="#/grouplessons/0">本周</a>
          <a href="javascript:void(0)" ng-controller="LessonController" ng-click="copyLessonToNextWeek(2,0,1)">复制到下周</a>
          <a href="#/grouplessons/1">下周</a>
          <a href="javascript:void(0)" ng-controller="LessonController" ng-click="copyLessonToNextWeek(2,1,2)">复制到下周</a>
          <a href="#/grouplessons/2">下下周</a>
          <a href="#/grouplessons" ng-class=" isRoute('/lessons')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-tasks"></span><span class="text">私教课程</span></a>
          <a href="#/grouplessons/0">本周</a>
          <a href="#/grouplessons/1">下周</a>
          <a href="#/grouplessons/2">下下周</a>
          <a href="#/courses" ng-class=" isRoute('/courses')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-cours"></span><span class="text">课程管理</span></a>
          <a href="#/coaches" ng-class=" isRoute('/coaches')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-coach"></span><span class="text">教练管理</span></a>
          <a href="#/profile" ng-class=" isRoute('/profile')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-calendar"></span><span class="text">场馆信息</span></a>
          <a href="#/receipts" ng-class=" isRoute('/receipts')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-profit"></span><span class="text">收益信息</span></a>
          <a href="#/messages" ng-class=" isRoute('/messages')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-infor"></span><span class="text">消息通知</span></a>
          <a href="#/about" ng-class=" isRoute('/about')? 'lnlinks cur' : 'lnlinks' " ng-click="setProcessParclose(false);"><span class="icons icon-nsgr-notice"></span><span class="text">关于无糖</span></a>
          -->
          <!--<a href="#" ng-class=" isRoute('/#')? 'lnlinks cur' : 'lnlinks' "><span class="icons icon-nsgr-setup"></span><span class="text">设置</span></a>-->
        <!-- </ul> -->
      <!-- </nav> -->
      </aside>
      <!-- end -->
	
      <!-- center content -->
      <div class="inner_page_wraper" >
        <div class="innerview-right" data-page="" ng-view>

        </div>
      </div>
      
      <!-- end -->
  	  <!-- parclose -->
	      	<div id="parclose" ng-click="focusBox();"></div>
	      	<div id="parclose_top" ng-click="focusTopBox();"></div>
	      	<div id="parclose_process"><img alt="" src="images/loading.gif"><em></em></div>
	      	<!-- <div parclose_process process-text="处理中。。。" process-image="" ng-show="processed"></div> -->
	  <!-- parclose end-->
      
      
      
      <div class="backBg"><img alt="" src="images/wxts.png"><em></em></div>

      

      


      <!-- build:js(.) scripts/vendor.js -->
      <!-- bower:js -->
      <script src="../bower_components/jquery/dist/jquery.js"></script>
      <script src="../bower_components/angular/angular.js"></script>
      <script src="../bower_components/angular-websocket/angular-websocket.min.js"></script>
      <script src="../bower_components/moment/moment.js"></script>
      <script src="../bower_components/fullcalendar/dist/fullcalendar.js"></script>
      <script src="../bower_components/angular-route/angular-route.js"></script>
      <script src="../bower_components/angular-animate/angular-animate.js"></script>
      <script src="../bower_components/angular-cookies/angular-cookies.js"></script>
      <script src="../bower_components/angular-messages/angular-messages.js"></script>
      <script src="../bower_components/ng-table/dist/ng-table.min.js"></script>
      <script src="../bower_components/qrcode/lib/qrcode.js"></script>
      <script src="../bower_components/angular-qr/src/angular-qr.js"></script>
      <script src="../bower_components/angular-ui-calendar/src/calendar.js"></script>
      <script src="../bower_components/bootstrap/dist/js/bootstrap.js"></script>
      <!-- endbower -->
      <!-- endbuild -->


        <!-- build:js({.tmp,app}) scripts/scripts.js -->
       
        <script src="scripts/lib/ui-bootstrap-tpls-0.13.1.js"></script>
        
        <!-- bootstrap-datetimepicker -->
        <script src="scripts/lib/bootstrap-datetimepicker.js"></script>
        <script src="scripts/lib/bootstrap-datetimepicker.zh-CN.js"></script>
				
					
				<!-- qiniu -->
        <script src="scripts/lib/plupload.full.min.js"></script>
        <script src="scripts/lib/qiniu.js"></script>
        


        <script src="scripts/app.js"></script>
        <script src="scripts/config/config.public.js"></script>
        <script src="scripts/config/routs.js"></script>

        <script src="scripts/service/appService.js"></script>
        <script src="scripts/service/HttpService.js"></script>
        <script src="scripts/service/MessageService.js"></script>
        <script src="scripts/service/ProfileService.js"></script>
        <script src="scripts/service/QiniuUploadService.js"></script>
        <script src="scripts/service/WebsocketService.js"></script>
        <script src="scripts/service/PageService.js"></script>



        <script src="scripts/controller/CoachController.js"></script>
        <script src="scripts/controller/CourseController.js"></script>
        <script src="scripts/controller/LessonController.js"></script>
        <script src="scripts/controller/LoginController.js"></script>
        <script src="scripts/controller/MainController.js"></script>
        <script src="scripts/controller/MessagesController.js"></script>
        <script src="scripts/controller/ProfileController.js"></script>
        <script src="scripts/controller/QRModalCtrl.js"></script>
        <script src="scripts/controller/ChangePWDCtrl.js"></script>
        <script src="scripts/controller/ReceiptController.js"></script>
        <script src="scripts/controller/RecordController.js"></script>
        <script src="scripts/controller/AboutController.js"></script>

        <script src="scripts/directive/directives.js"></script>
        <script src="scripts/filter/filters.js"></script>
        <!-- endbuild -->


      <script type="text/javascript">
          // this is a simple script to show/hide leftbar, so not moving to js files
          $(document).ready(function() {
            $('.navbar-brand').on('click', function(event) {
              $('body').toggleClass('sidebar-left-opened');
            });
          if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iOS|Backerry| WebOS|Symbian|Windows Phone|Phone)/i))) { 
           location.replace("404.html");
          }
          
          });
  
          function playvoice(fileName)
          {
            if(document.getElementById('sound')){
              document.body.removeChild(document.getElementById('sound'));
            }
             var sound=document.createElement("audio");
             sound.controls="controls";
             sound.id="sound";
             sound.autoplay='autoplay';
             sound.style.display='none';
             document.body.appendChild(sound);
             var source = document.createElement('source');
             source.src = 'media/' + fileName+'.ogg';
             source.type='audio/ogg';
             sound.appendChild(source);
             var sound2 = document.createElement('embed');
             sound2.src = 'media/' + fileName+'.mp3';
             sound2.autostart='true';
             sound.appendChild(sound2);        
          }
      </script>
</body>
</html>
